package com.probox.common.entity.domain.wechat;

import java.util.Date;
import java.io.Serializable;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.probox.common.core.annotation.Excel;

/**
 * 小程序基本信息返回参数对象 applet_info_retuen
 *
 * @author zsy
 * @date 2021-06-07
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("wechat_applet_info")
public class WechatAppletInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 返回参数id
     */
    //默认主键自增
    @TableId(value = " return_id", type = IdType.AUTO)
    private Long returnId;
    /**
     * 返回码
     */
    @Excel(name = "返回码")
    private Long errcode;
    /**
     * 错误信息
     */
    @Excel(name = "错误信息")
    private String errmsg;
    /**
     * 帐号 appid
     */
    @Excel(name = "帐号 appid")
    private String appid;
    /**
     * 帐号类型（1：订阅号，2：服务号，3：小程序）
     */
    @Excel(name = "帐号类型", readConverterExp = "1=：订阅号，2：服务号，3：小程序")
    private Integer accountType;
    /**
     * 主体类型
     */
    @Excel(name = "主体类型")
    private Integer principalType;
    /**
     * 主体名称
     */
    @Excel(name = "主体名称")
    private String principalName;
    /**
     * 主体标识
     */
    @Excel(name = "主体标识")
    private String credential;
    /**
     * 实名验证状态
     */
    @Excel(name = "实名验证状态")
    private String realnameStatus;
    /**
     * 微信认证信息
     */
    @Excel(name = "微信认证信息")
    private String wxVerifyInfo;
    /**
     * 功能介绍信息
     */
    @Excel(name = "功能介绍信息")
    private String signatureInfo;
    /**
     * 头像信息
     */
    @Excel(name = "头像信息")
    private String headImageInfo;
    /**
     * 名称信息
     */
    @Excel(name = "名称信息")
    private String nicknameInfo;
    /**
     * 注册国家
     */
    @Excel(name = "注册国家")
    private Long registeredCountry;
    /**
     * 创建时间
     */
    private Date createTime;

    public WechatAppletInfo(Long errcode, String errmsg, String appid, Integer accountType, Integer principalType, String principalName, String credential, String realnameStatus, String wxVerifyInfo, String signatureInfo, String headImageInfo, String nicknameInfo, Long registeredCountry, Date createTime) {
        this.errcode = errcode;
        this.errmsg = errmsg;
        this.appid = appid;
        this.accountType = accountType;
        this.principalType = principalType;
        this.principalName = principalName;
        this.credential = credential;
        this.realnameStatus = realnameStatus;
        this.wxVerifyInfo = wxVerifyInfo;
        this.signatureInfo = signatureInfo;
        this.headImageInfo = headImageInfo;
        this.nicknameInfo = nicknameInfo;
        this.registeredCountry = registeredCountry;
        this.createTime = createTime;
    }
}
